import request from '@/utils/request'

// 查询商品房降价日志列表
export function listReduceLog(query) {
  return request({
    url: '/kanfang/reduceLog/list',
    method: 'get',
    params: query
  })
}

// 查询商品房降价日志详细
export function getReduceLog(id) {
  return request({
    url: '/kanfang/reduceLog/' + id,
    method: 'get'
  })
}

// 新增商品房降价日志
export function addReduceLog(data) {
  return request({
    url: '/kanfang/reduceLog',
    method: 'post',
    data: data
  })
}

// 修改商品房降价日志
export function updateReduceLog(data) {
  return request({
    url: '/kanfang/reduceLog',
    method: 'put',
    data: data
  })
}

// 删除商品房降价日志
export function delReduceLog(id) {
  return request({
    url: '/kanfang/reduceLog/' + id,
    method: 'delete'
  })
}
